<?php

use think\migration\Seeder;

class OauthClient extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $singleRow = [
            'client_id'     => 'testclient',
            'client_secret' => 'testpass',
            'redirect_uri'  => 'http://xxx.com',
            'grant_types'   => 'authorization_code',
            'scope'         => 'base',
            'user_id'       => 0
        ];

        $this->table('oauth_clients')->insert($singleRow)->save();
    }
}